package io.gitee.zicai.bus.bus;

import java.io.Serializable;
import java.util.function.BiConsumer;

/**
 * IBus
 *
 * @author zicai
 * @since 2021-01-22
 */
public interface IBus<S, T> extends Serializable {

    default String getBrand() {
        return null;
    }

    T getPayload();

    BiConsumer<S, T> getBiConsumer();

}
